package cn.fu.tag;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**   
* @Title: DisplayInfo.java 
* @Package cn.fu.tag 
* @Description: 显示时间
* @author zhangxiaofu   
* @Company www.viewhigh.com
* @date 2016年7月23日 下午10:45:57 
* @version V1.0   
*/
public class DisplayInfo extends SimpleTagSupport{
@Override
public void doTag() throws JspException, IOException {
	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	String dateStr = dateFormat.format(new Date());
	JspWriter jspWriter = getJspContext().getOut();
	jspWriter.write(dateStr);
}
}

